Spread Windows Forms 12.0 Product Documentation
AddRange(SheetView[]) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class > AddRange Method : AddRange(SheetView[]) Method
Array of SheetView objects
Adds an array of SheetView objects to the collection.
Syntax
'Declaration
 
Public Overloads Sub AddRange( _
   ByVal sheets() As SheetView _
) 
'Usage
 
Dim instance As SheetViewCollection
Dim sheets() As SheetView
 
instance.AddRange(sheets)
public void AddRange( 
   SheetView[] sheets
)

Parameters

sheets
Array of SheetView objects
Example
This example adds a range of sheets to the collection.
FarPoint.Win.Spread.SheetView[] s = {new FarPoint.Win.Spread.SheetView("Sheet1"),
new FarPoint.Win.Spread.SheetView("Sheet2"), new FarPoint.Win.Spread.SheetView("Sheet3")};
fpSpread1.Sheets.AddRange(s);
Dim s As FarPoint.Win.Spread.SheetView() = {New FarPoint.Win.Spread.SheetView("Sheet1"), 
New FarPoint.Win.Spread.SheetView("Sheet2"), New FarPoint.Win.Spread.SheetView("Sheet3")}
FpSpread1.Sheets.AddRange(s)
See Also

Reference

SheetViewCollection Class
SheetViewCollection Members
Overload List